SecOps - 41040 - Tenant Allow/Block List entries are scoped, time-bounded, and free of broad allow rules - #1492
Draft
Naga Praneeth Chukka (praneeth-0000) wants to merge 1 commit into
Draft
Conversation
Copilot started reviewing on behalf of
Naga Praneeth Chukka (praneeth-0000)
August 7, 2026 11:39
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new SecOps assessment (41040) to evaluate Tenant Allow/Block List (TABL) “allow” hygiene in Exchange Online / MDO, producing a drift summary and an action table for flagged entries.
Changes:
- Introduces
Test-Assessment-41040to query TABL entries (Sender/Url/FileHash/IP), classify admin-controlled allow entries, and emit markdown results with drift metrics. - Adds the companion
Test-Assessment.41040.mddescription/remediation content used in reporting.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/powershell/tests/Test-Assessment.41040.ps1 | New assessment logic + markdown report generation for TABL allow-entry hygiene. |
| src/powershell/tests/Test-Assessment.41040.md | New test narrative/remediation links and %TestResult% placeholder. |
| | :----- | ----: | :----- | | ||
| $driftRows | ||
|
|
||
| AdvancedDelivery and Submission entries, plus spoofed-sender allows governed separately through Get-TenantAllowBlockListSpoofItems, are represented by the excluded count above and never affect the verdict. |
Comment on lines
+281
to
+285
| $expirationDisplay = if ($row.IsUnbounded) { | ||
| 'No expiration' | ||
| } else { | ||
| Get-FormattedDate -DateString ($row.ExpirationDate.ToString('o')) | ||
| } |
Comment on lines
+269
to
+279
| $valueRaw = ([string]$row.Value) -replace '[\r\n]+', ' ' | ||
| $valueDisplay = if ($valueRaw.Length -gt 50) { $valueRaw.Substring(0, 47) + '...' } else { $valueRaw } | ||
| $valueDisplay = Get-SafeMarkdown -Text $valueDisplay | ||
|
|
||
| $notesRaw = if ($null -ne $row.Notes) { (([string]$row.Notes).Trim() -replace '[\r\n]+', ' ') } else { '' } | ||
| $notesDisplay = if ([string]::IsNullOrWhiteSpace($notesRaw)) { '—' } ` | ||
| elseif ($notesRaw.Length -gt 80) { $notesRaw.Substring(0, 77) + '...' } ` | ||
| else { $notesRaw } | ||
| if ($notesDisplay -ne '—') { | ||
| $notesDisplay = Get-SafeMarkdown -Text $notesDisplay | ||
| } |
Comment on lines
+123
to
+131
| $allAllow = @($allEntries | Where-Object { $_.Action -eq 'Allow' }) | ||
| $allBlock = @($allEntries | Where-Object { $_.Action -eq 'Block' }) | ||
|
|
||
| $exemptEntries = @($allAllow | Where-Object { | ||
| $_.ListSubType -in @('AdvancedDelivery', 'Submission') | ||
| }) | ||
| $adminControlledAllow = @($allAllow | Where-Object { | ||
| $_.ListSubType -eq 'Tenant' | ||
| }) |
Naga Praneeth Chukka (praneeth-0000)
marked this pull request as draft
August 7, 2026 12:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.